package org.itboys.mobile.dto;

import java.math.BigDecimal;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 描述：圣代_预支付（返回给前端的记过）_dto。
 */

public class TianJieWalletRecordDto extends MobileBaseDto{

    public static Integer wallet_record_type_cash=10;
    private Integer type;//记录类型。1，充值，2，托管区块链，3，游戏充值，4，拨付，6退出区块链-返还本金，7，退出区块链-返还收益，8，推荐收益，9，释放待释放金额。10.提现
    private String remark;//记录类型备注
    private BigDecimal amount;//记录金额
    public TianJieWalletRecordDto() {

    }

    public TianJieWalletRecordDto(long id, String createTime, String createDate, Integer type, String remark, BigDecimal amount) {
        super(id, createTime, createDate);
        this.type = type;
        this.remark = remark;
        this.amount = amount;
    }
    public String  getStypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;

        switch (type) {
            case 1:
                typeStr="充值";
                break;
            case 2:
                typeStr="托管区块链";
                break;
            case 3:
                typeStr="游戏充值";
                break;
            case 4:
                typeStr="拨付";
                break;
            case 6:
                typeStr="退出区块链-返还本金";
                break;
            case 7:
                typeStr="退出区块链-返还收益";
                break;
            case 8:
                typeStr="业绩分成";
                break;
            case 9:
                typeStr="释放待释放金额";
                break;
            case 10:
                typeStr="提现";
                break;
            case 11:
                typeStr="消费";
                break;

            default:
                break;
        }
        return typeStr;
    }
    public String  getTypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;

        switch (type) {
            case 1:
                typeStr="充值";
                break;
            case 2:
                typeStr="托管区块链";
                break;
            case 3:
                typeStr="游戏充值";
                break;
            case 4:
                typeStr="拨付";
                break;
            case 6:
                typeStr="退出区块链-返还本金";
                break;
            case 7:
                typeStr="退出区块链-返还收益";
                break;
            case 8:
                typeStr="业绩分成";
                break;
            case 9:
                typeStr="释放待释放金额";
                break;
            case 10:
                typeStr="提现";
                break;
            case 11:
                typeStr="消费";
                break;

            default:
                break;
        }
        return typeStr;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getInfo(){
        return "字段说明：1，type:(记录类型；忽略)，remark:交易备注，3，amount:交易金额";
    }
}
